import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({

  routes: [
    //配置默认的路径，默认显示登录页
    {path: '/', redirect: '/login'},
    {path: '/login', component: () => import('@/views/login')},

    //配置登录成功页面，使用时需要使用 path 路径来实现跳转
    {
      path: '/index', component: () => import('@/views/layout'),
      children: [{path: '/index', component: () => import('@/views/center')},
        {path: '/order', component: () => import('@/views/order')},
        {path: '/entrInfo', component: () => import('@/views/power/entrInfo')},
        {path: '/mgrInfo', component: () => import('@/views/power/mgrInfo')},
        {path: '/userInfo', component: () => import('@/views/power/userInfo')},
        {path: '/recruitInfo', component: () => import('@/views/jobInfo/recruitInfo')},
        {path: '/resumeInfo', component: () => import('@/views/jobInfo/resumeInfo')},
        {path: '/userOneInfo', component: () => import('@/views/selfInfo/userOneInfo')},
        {path: '/resumeOneInfo', component: () => import('@/views/selfInfo/resumeOneInfo')},
        {path: '/entrOneInfo', component: () => import('@/views/selfInfo/entrOneInfo')},
        {path: '/entrByselfRecruit', component: () => import('@/views/selfInfo/entrByselfRecruit')},
        {path: '/talk', component: () => import('@/views/communication/talk')},


        ]
    }
  ]
})



  export default router
